import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import Login from "@/user/login.vue";
import Index from "@/user/Index.vue";
import Goods from "@/user/Goods.vue";
import Person from "@/user/Person.vue";
import Friend from "@/user/friend.vue";
import Ncontent from "@/user/newcontent.vue";
import Zhuce from '@/user/zhuce.vue'
import findPwd from '@/user/findpwd.vue';
Vue.use(Router);

export default new Router({
    routes: [{
            path: "/",
            redirect: "/login"
        },
        {
            path: "/login",
            name: "Login",
            component: Login,
            meta: {
                footguid: false
            }
        },
        {
            path: "/index",
            name: "Index",
            component: Index,
            meta: {
                footguid: true
            }
        },
        {
            path: "/goods",
            name: "Goods",
            component: Goods,
            meta: {
                footguid: true
            }
        },
        {
            path: "/person",
            name: "Person",
            component: Person,
            meta: {
                footguid: true
            }
        }, {
            path: '/friend',
            name: "friend",
            component: Friend,
            meta: {
                footguid: true
            }
        },
        {
            path: '/ncontent',
            name: "Ncontent",
            component: Ncontent,
            meta: {
                footguid: false
            }
        }, {
            path: '/zhuce',
            name: 'Zhece',
            component: Zhuce,
            meta: {
                footguid: false
            }
        }, {
            path: '/findpwd',
            name: 'findpwd',
            component: findPwd,
            meta: {
                footguid: false
            }
        }
    ]
});